//
//  KVNWebViewController.m
//  Test1
//
//  Created by KelvinYeung on 15/8/18.
//  Copyright (c) 2015年 KelvinYeung. All rights reserved.
//

#import "KVNWebViewController.h"

@interface KVNWebViewController ()

@property NSString *baseUrl;
@end

@implementation KVNWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    _baseUrl = @"http://112.74.96.195/user_mobile/";
    _webView = [[UIWebView alloc]initWithFrame:self.view.frame];
    [self.view addSubview:_webView];
    
    if (_requestUrl != nil) {
        NSLog(@"load.....request..%@",_requestUrl);
        NSString *urlStr = [NSString stringWithFormat:@"%@%@",_baseUrl,_requestUrl];
        NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:urlStr]];
        [_webView loadRequest:request];
    }
    
    
}

- (void)loadRequestWithURL:(NSURL *)url{
    [_webView loadRequest:[NSURLRequest requestWithURL:url]];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
